﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;
using TeenyGrab.Helpers;

namespace TeenyGrab.Classes
{
    [Serializable]
    public class Hotkey
    {
        public bool Ctrl { get; set; }
        public bool Shift { get; set; }
        public bool Alt { get; set; }
        public System.Windows.Forms.Keys Button { get; set; }

        public Hotkey()
        {
            Ctrl = Shift = Alt = false;
        }

        public Hotkey(System.Windows.Forms.Keys key)
        {
            Button = key;
            Ctrl = Shift = Alt = false;
        }
        
        public Hotkey(Key key)
        {
            Button = key.WPFToWinformsKey();
            Ctrl = Shift = Alt = false;
        }
    }
}
